<template>
	<view class="content">
		<image class="logo" src="/static/logo.png"></image>
		<view class="text-area">
			<text class="title">{{title}}</text>
		</view>
		<navigator url="/pages/user/user">跳转到user</navigator>
		<!-- 如果跳转模式 是 navigate ，到了demo页就不会有返回首页的按钮 ,redirect会有 因为 防止回不到首页-->
		<navigator open-type="redirect" url="/pages/demo/demo">跳转到demo</navigator>
			<!-- <navigator url="/pages/demo/demo">跳转到demo</navigator> -->
			
		<button @click="stop">停止</button>
		
	</view>
</template>

<script setup>
	// export default {
	// 	data() {
	// 		return {
	// 			title: 'Hello'
	// 		}
	// 	},
	// 	onLoad() {

	// 	},
	// 	methods: {

	// 	}
	// }
	uni.showToast({
		title:"失败",
		// icon:"error",
		icon:"none",
		duration: 2000
	})
	const title=ref("bioati")
	onMounted(()=>{
		console.log('onload')
		
	})
	onLoad(()=>{
		console.log('onload')
	})
	onReachBottom(()=>{
		console.log('onreach bottom')
	})
	const stop=()=>{
		console.log('zhixingle stop')
		uni.stopPullDownRefresh()
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
